==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zap
\starttext
> \startmarginrule[1]
> \input ward
> \stopmarginrule
>
> \blank
>
> \startsidebar[Sidebar]
> \input zapf
> \stopsidebar
> \stoptext
> ==
>
> In the output, either
>
> i) the rules do not appear at all (most attempts); or
> ii) t
ebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==
In the output, either
i) the rules do not appear
rulecolor=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==
In the output, either
i) the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (usi
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==
In the output, either
i) the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf as the
viewer, so the pdf upd
=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==
In the output, either
i) the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf
t;withcolor linecolor ;
>>p := p + stp ;
>>exitif arclength( a -- p ) > arclength( a -- b ) ;
>>endfor ;
>>endgroup ;
>>clip currentpic
you, Hans.
To save this example, I wikified \setupsidebar, \definesidebar and
\startsidebar...\stopsidebar.
If you do something on alternatives, let me know.
Massi
___
If your question is of interest to others as w
pen pencircle scaled linewidth
withcolor linecolor ;
fi ;
endgroup ;
enddef ;
\stopMPcode
\starttext
\startsidebar[zigzag1]\input knuth\relax\stopsidebar\par
\blank
\startsidebar[zigzag2]\input sapolsky\relax\stopsidebar\par
\blank
\startsidebar[wave1]\input knuth\relax\stopsidebar\
{change}
{\startsidebar[rulecolor=red]}
{}},
after={\doifmodeelse{change}
{\stopsidebar}
{}},
]
% Paragraph removed
%\definestartstop[ChangePR][
% before={\doifmodeelse{change}
%{\startsidebar[rulecolor=red]}
%{\startbuffer[ignore]}},
% after={\doifmodeelse{change
that is not working.
My idea was to put the text into a buffer and ignore it, that didn’t work.
% !TEX TS-program = ConTeXt (LuaTeX 1.0.9)
% !TEX encoding = UTF-8 Unicode
%\enablemode[change]
% Paragraph removed
\definestartstop[ChangePR][
before={\doifmodeelse{change}
{\startsidebar[rulecolor=red
> dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2020.03.10 14:44
> mtx-context | main context file: /usr/share/texmf-
> dist/tex/context/base/mkiv/context.mkxl
> mtx-context | current version: 2020.03.10 14:44
>
> So probably I should upgr
=\startsidebar,
after=\stopsidebar]
\starttext
\samplefile{ward}
\startCPP
#include
int main(void)
{
printf("hello, world\n");
}
\stopCPP
\samplefile{weisman}
\stoptext
Can you see that there is an additional line before and after the code?
How can I get rid of these?
; > >
> > > > The line should stretch over the whole theorem, not just the first line.
> > > > (But the latter would be a beginning, though.)
> > > >
> > > > Important to note is that the line should be *on the margin*, not in the
>
greatly appreciate
your
answer. Thank you!
Look for \startsidebar \stopsidebar and \setupsidebar.
\setupsidebar [...,...] [..,..=..,..]
1 2
OPT
1 NAME
2 rulethickness = DIMENSION
rulecolor = COLOR
alternative = NUMBER
; (But the latter would be a beginning, though.)
>>>
>>> Important to note is that the line should be *on the margin*, not in the
>>> text.
>>>
>>> So do you have an idea on how I could do that? I would greatly appreciate
>>> your
>>> answer.
in*, not in the
> > text.
> >
> > So do you have an idea on how I could do that? I would greatly appreciate
> > your
> > answer. Thank you!
> >
> Look for \startsidebar \stopsidebar and \setupsidebar.
>
> \setupsidebar [...,...] [..,..=..,..]
>
, not just the first line.
(But the latter would be a beginning, though.)
Important to note is that the line should be *on the margin*, not in the text.
So do you have an idea on how I could do that? I would greatly appreciate your
answer. Thank you!
Look for \startsidebar \stopsidebar
,
% topoffset=-2mm
]
\defineenumeration[proclaim]
[text=,
before={\startsidebar[ProclaimSidebar]},
after={\stopsidebar},
style=slanted,
title=yes,
titleleft=,
titleright={.},
% alternative=serried,
alternative=hanging
how I can
>>>>> avoid that.
>>>> Change the order of both environment and put sidebar in the narrower block.
>>>>
>>>> The reason for the extra line is that \startsidebar begins a new paragraph
>>>> but \startnarrower end the lest paragraph w
space introduced if I use both environments,
but not if I use only one. And I didn’t find how I can avoid that.
Change the order of both environment and put sidebar in the narrower block.
The reason for the extra line is that \startsidebar begins a new paragraph but
\startnarrower end the lest
hat there’s space introduced if I use both
>>> environments, but not if I use only one. And I didn’t find how I can avoid
>>> that.
>> Change the order of both environment and put sidebar in the narrower block.
>>
>> The reason for the extra line is that \startside
one. And I didn’t find how I can avoid that.
> Change the order of both environment and put sidebar in the narrower block.
>
> The reason for the extra line is that \startsidebar begins a new paragraph
> but \startnarrower end the lest paragraph which results in a single empty
&
sidebar in the narrower block.
The reason for the extra lien is that \startsidebar begins a new
paragraph but \startnarrower end the lest paragraph which results in a
single empty line.
Wolfgang
___
If your question
ebar. Indeed here 5mm should
> be replaced with what looks better with your setting of interlinespace.
>
> Best regards: OK
>
>> On 26 Mar 2019, at 11:16, Henning Hraban Ramm wrote:
>>
>> Ahoi,
>> I’m trying to mark examples in a book with indent (\startnarrow
regards: OK
> On 26 Mar 2019, at 11:16, Henning Hraban Ramm wrote:
>
> Ahoi,
> I’m trying to mark examples in a book with indent (\startnarrower) and a rule
> in the margin (\startsidebar).
> Each of those works on its own as it should, but combined there’s an
> additio
Ahoi,
I’m trying to mark examples in a book with indent (\startnarrower) and a rule
in the margin (\startsidebar).
Each of those works on its own as it should, but combined there’s an additional
empty line before and after introduced that I can’t get rid of.
Any hints?
\starttext
\input tufte
ir options in "i-context.pdf" file.
Thank you for the reply.
I found the command “\setupsidebar”.
The following example is working well.
%%%
\definecolor[dGreen][r=0,g=.4,b=0]
%\setupsidebar[rulecolor=(.4green)]
\setupsidebar[rulecolor=dGreen]
\starttext
\startsidebar
\sam
gt; 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
>
> On 2/24/2019 12:25 AM, mf wrote:
>
> BTW \startsidebar ... \stopsidebar stopped working too.
>
> i'll upload a fix later today
>
> Hans
>
>
> It is good to know the commnad "\startsidebar … \s
Dear Hans,
> 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
>
> On 2/24/2019 12:25 AM, mf wrote:
>> BTW \startsidebar ... \stopsidebar stopped working too.
> i'll upload a fix later today
>
> Hans
It is good to know the commnad "\startsidebar … \stopside
On 2/24/2019 12:25 AM, mf wrote:
BTW \startsidebar ... \stopsidebar stopped working too.
i'll upload a fix later today
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061
BTW \startsidebar ... \stopsidebar stopped working too.
Massimiliano
Il 23/02/19 21:58, Hans Hagen ha scritto:
On 2/23/2019 5:10 PM, Rik Kabel wrote:
With the following example, I get:
...eXt/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:238:
attempt to call upvalue 'imgwrap' (a nil
=blue,distance=-\dimexpr\textwidth+2mm]
\input tufte \par
\startsidebar
\input tufte \par
\input tufte \par
\startsidebar[whow]
\input tufte \par
\input tufte \par
\input tufte
\stopsidebar \par
\input tufte \par
\input tufte
\stopsidebar \par
\input tufte \par
\input tufte
? When I put it into \definesidebar, the sidebar
disappears, and when I write \startsidebar[oeps,alternative=1]
it reverts to the default left sidebar (albeit dotted).
Matthias
\setupmargindata [left]
[location=right,
style=\bfxx]
\setupmarginframed[left
in the alternative=1
option to get dotted lines? When I put it into \definesidebar, the sidebar
disappears, and when I write \startsidebar[oeps,alternative=1]
it reverts to the default left sidebar (albeit dotted).
Matthias
Matthias,
You can use distance= in \setupmarginrules to achieve
for any suggestions.
-
\setuplines[before=,after=]
\def\startcommand{\dosingleargument\dostartcommand}
\def\dostartcommand[#1]%
{\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar}
\def\stopcommand{\stopsidebar\stoplines\egroup}
\starttext
\startcommand
this must
.
-
\setuplines[before=,after=]
\def\startcommand{\dosingleargument\dostartcommand}
\def\dostartcommand[#1]%
{\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar}
\def\stopcommand{\stopsidebar\stoplines\egroup}
\starttext
\startcommand
this must be bold
\input knuth
this is bold
[before=,after=]
\def\startcommand{\dosingleargument\dostartcommand}
\def\dostartcommand[#1]%
{\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar}
\def\stopcommand{\stopsidebar\stoplines\egroup}
\starttext
\startcommand
this must be bold
\input knuth
this is bold%
\stopcommand
some text
\startsidebar is 'taken'.
Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman
39 matches
Mail list logo